/**
 * Created by asus on 2017/5/5.
 */
import * as types from './mutationTypes'

export default {
  [types.SPIDER_QUERY_WEBNEWS_BEGIN](state) {
    state.webNews = []
  },
  [types.SPIDER_QUERY_WEBNEWS_SUC](state, {webNews, currentPage, totalCount}) {
    state.webNews = webNews
    state.currentPage = currentPage
    state.totalCount = totalCount
  },
  [types.SPIDER_QUERY_WEBSITELIST_BEGIN](state) {
    state.websiteList = []
  },
  [types.SPIDER_QUERY_WEBSITELIST_SUC](state, {websiteList, wsCurrentPage, wsTotalCount}) {
    state.websiteList = websiteList
    state.wsCurrentPage = wsCurrentPage
    state.wsTotalCount = wsTotalCount
  }
}
